package model;

import java.util.List;

public class Regula {

	public final List<String> premise;
	public final String concluzie;
	
	public Regula(List<String> premisa, String concluzie) {
		this.premise = premisa;
		this.concluzie = concluzie;
	}
	
	public String toString() {
		String res = "if (";
		int i;
		for (i = 0; i < premise.size() - 1; i++)
			res += premise.get(i) + " & ";
		res += premise.get(i);
		return res + ") then " + concluzie;
	}
	
}
